import Vue from 'vue'
// 1、导入 vue-router 包
import VuerRouter from 'vue-router'
// 2、手动安装 VueRouter
Vue.use(VuerRouter);


import account from './main/Account.vue'
import login from './main/login.vue'
import register from './main/register.vue'
import goodslist from './main/GoodsList.vue'

var router = new VuerRouter({
      routes: [
        // 
        // {path: '/account', component: account},
        // {path: '/goodslist', component: goodslist},
        {path: '/account', component: account, children: [
          {path: 'login', component: login},
          {path: 'register', component: register},
        ]},
        {path: '/goodslist', component: goodslist}
     ]
})


export default router;